Array.prototype.add=function(item){
    let that=this;
    let he=0;
    for(let i=0;i<that.length;i++){
        he+=that[i];
    }
    return he
}
let array=[1,2,3,4,64,4]
let array1=array.add()
console.log(array1);